home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1245 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  839 b 

  1. From: Pacu@msn.com (kenneth long)
  2. Subject: Constructor?
  3. Date: 12 Jan 96 16:24:13 -0800
  4. Message-ID: <00001a80+00006b6c@msn.com>
  5. Path: news.msn.com!msn.com
  6. Newsgroups: comp.lang.c
  7. Organization: The Microsoft Network (msn.com)
  8.  
  9. In a program example, I saw something similar to the following:
  10.  
  11.         public:
  12.             CString str;
  13.                 (etc..)
  14.  
  15.  
  16.         Later, in a function, I saw: 
  17.  
  18.         Function()
  19.                     
  20.             Cstring str;
  21.                 (etc..)
  22.  
  23. In episode one, is it declaring str to be of CString type or is it 
  24. constructed there? And in the second instance, inside of the 
  25. function, is it being constructed or is it a variable of CString 
  26. type? If this example is too vague, I will try to find the missing 
  27. pieces, but I ask it in a general sense concerning the nature of 
  28. constuctors and variable tpe declaration. Any help is appreciated via 
  29. personal e-mail. Pacu.
  30.             
  31.